package com.britecloud.cloud.service;

import com.britecloud.cloud.service.fallback.SampleRemoteServiceFallBack;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * Created by DK on 2017/5/8.
 */
@FeignClient(name = "service", fallback = SampleRemoteServiceFallBack.class)
public interface SampleRemoteService {

    @RequestMapping(value = "/message", method = RequestMethod.GET)
    String getMessage();
}
